package com.entity;

public class Commenys {
    private int cmId;
    private String cmTime;
    private String cmGood;
    private String cmUser;
    private Integer cmArticleId;
    private String cmContext;
    private Integer cmFatherId;

    public int getCmId() {
        return cmId;
    }

    public void setCmId(int cmId) {
        this.cmId = cmId;
    }

    public String getCmTime() {
        return cmTime;
    }

    public void setCmTime(String cmTime) {
        this.cmTime = cmTime;
    }

    public String getCmGood() {
        return cmGood;
    }

    public void setCmGood(String cmGood) {
        this.cmGood = cmGood;
    }

    public String getCmUser() {
        return cmUser;
    }

    public void setCmUser(String cmUser) {
        this.cmUser = cmUser;
    }

    public Integer getCmArticleId() {
        return cmArticleId;
    }

    public void setCmArticleId(Integer cmArticleId) {
        this.cmArticleId = cmArticleId;
    }

    public String getCmContext() {
        return cmContext;
    }

    public void setCmContext(String cmContext) {
        this.cmContext = cmContext;
    }

    public Integer getCmFatherId() {
        return cmFatherId;
    }

    public void setCmFatherId(Integer cmFatherId) {
        this.cmFatherId = cmFatherId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Commenys commenys = (Commenys) o;

        if (cmId != commenys.cmId) return false;
        if (cmTime != null ? !cmTime.equals(commenys.cmTime) : commenys.cmTime != null) return false;
        if (cmGood != null ? !cmGood.equals(commenys.cmGood) : commenys.cmGood != null) return false;
        if (cmUser != null ? !cmUser.equals(commenys.cmUser) : commenys.cmUser != null) return false;
        if (cmArticleId != null ? !cmArticleId.equals(commenys.cmArticleId) : commenys.cmArticleId != null)
            return false;
        if (cmContext != null ? !cmContext.equals(commenys.cmContext) : commenys.cmContext != null) return false;
        if (cmFatherId != null ? !cmFatherId.equals(commenys.cmFatherId) : commenys.cmFatherId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cmId;
        result = 31 * result + (cmTime != null ? cmTime.hashCode() : 0);
        result = 31 * result + (cmGood != null ? cmGood.hashCode() : 0);
        result = 31 * result + (cmUser != null ? cmUser.hashCode() : 0);
        result = 31 * result + (cmArticleId != null ? cmArticleId.hashCode() : 0);
        result = 31 * result + (cmContext != null ? cmContext.hashCode() : 0);
        result = 31 * result + (cmFatherId != null ? cmFatherId.hashCode() : 0);
        return result;
    }
}
